<?php
//    $username='13546698741';
//    $password='123';
//    if(isset($_POST['username'])){
//        if( $_POST['username']==$username && $_POST['password']==$password ){
//            echo "登入成功！";
//            echo '点击此处 <a href="index.html">注销</a> 登录！<br />';
//        }else {
//            if ($_POST['password'] == $password) {
//                echo "登入失败！";
//            }
//        }
//    }


session_start();
$username='13546698741';
$password='123';
if(isset($_POST['username'])){
    if( $_POST['username']==$username && $_POST['password']==$password ){
        echo "登入成功！";
        header("Location:../index.html");
    }else if($_POST['username'] !== $username){
        echo "账号错误，登入失败！";
    }else if($_POST['password'] !== $password){
        echo "密码错误，登入失败！";
    }
}

?>





